//
//  UIColor+ZUtilities.h
//
//  Created by Zed Link on 1/8/2016.
//  Copyright © 2016 itHeima. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (ZUtilities)

/**
 返回随机颜色
 */
+ (instancetype)zRandomColor;

/**
 返回16进制的RGB值对应的颜色, 如0xFFFFFF
 */
+ (instancetype)zColorWithHex:(uint32_t)hex;

/**
 返回指定RGB值的颜色, 每个值的范围为 0 ~ 255
 */
+ (instancetype)zColorWithRed:(uint8_t)red green:(uint8_t)green blue:(uint8_t)blue;

- (NSData *)changeData;

// 返回颜色RBG值
+ (NSArray *)colorForGGB:(UIColor *)color;



@end
